package com.yida.gwj.deposit.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Description 单位缴存信息参数
 * @Author wws
 * @Date 2023-02-21
 */
@ApiModel("单位缴存")
public class GwjUnitDepositRequest {

    /**
     * 业务信息
     */
    @Valid
    @NotNull( message = "业务信息不能为空")
    @ApiModelProperty("业务信息参数")
    private GwjDepositBusinessRequest businessRequest;

    /**
     * 业务金额
     */
    @Valid
    @NotNull( message = "业务金额不能为空")
    @ApiModelProperty("业务金额参数")
    private GwjDepositBusinessMoneyRequest moneyRequest;

    /**
     * 业务小区
     */
    @Valid
    @NotNull( message = "业务小区不能为空")
    @ApiModelProperty("业务小区参数")
    private GwjDepositBusinessCommunityRequest communityRequest;

    /**
     * 业务楼栋
     */
    @Valid
    @NotNull( message = "业务楼栋不能为空")
    @ApiModelProperty("业务楼栋参数")
    private List<GwjDepositBusinessBuildRequest> buildRequests;




    public GwjDepositBusinessRequest getBusinessRequest() {
        return businessRequest;
    }

    public void setBusinessRequest(GwjDepositBusinessRequest businessRequest) {
        this.businessRequest = businessRequest;
    }

    public GwjDepositBusinessMoneyRequest getMoneyRequest() {
        return moneyRequest;
    }

    public void setMoneyRequest(GwjDepositBusinessMoneyRequest moneyRequest) {
        this.moneyRequest = moneyRequest;
    }

    public GwjDepositBusinessCommunityRequest getCommunityRequest() {
        return communityRequest;
    }

    public void setCommunityRequest(GwjDepositBusinessCommunityRequest communityRequest) {
        this.communityRequest = communityRequest;
    }

    public List<GwjDepositBusinessBuildRequest> getBuildRequests() {
        return buildRequests;
    }

    public void setBuildRequests(List<GwjDepositBusinessBuildRequest> buildRequests) {
        this.buildRequests = buildRequests;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("GwjUnitDepositRequest{");
        sb.append("businessRequest=").append(businessRequest);
        sb.append(", moneyRequest=").append(moneyRequest);
        sb.append(", communityRequest=").append(communityRequest);
        sb.append(", buildRequests=").append(buildRequests);
        sb.append('}');
        return sb.toString();
    }
}
